package com.atguigu.jxc.dao;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.Customer;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomerDao {
    //查询客户列表分页模糊查询
    List<Customer> selectCustomerList(Integer page, Integer rows, String customerName);
    //根据姓名查询
    Customer selectByName(String customerName);
    //添加
    void save(Customer customer);
    //修改
    void update(Customer customer);

    void delete(@Param("ids") List ids);

    List<Customer> getComboboxList(String customerName);

    Customer getCustomerById(Integer customerId);
}
